package com.example.myweb.Dto;

import lombok.Data;

import java.util.List;

// 3. 用于在内容详情中展示投票结果的DTO
@Data
public class PollResultDTO {
    private Long pollId; // attachmentId
    private String question;
    private List<PollOptionResultDTO> options;
    private long totalVotes;
    private Integer userVotedOptionIndex; // 当前用户投了哪个选项，如果没投则为null
}